﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ComponentModel;
using System.Globalization;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for ListConverterTest and is intended
    ///to contain all ListConverterTest Unit Tests
    ///</summary>
	[TestClass()]
	public class ListConverterTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for ListConverter`1 Constructor
		///</summary>
		public void ListConverterConstructorTestHelper<T>()
		{
			ListConverter<T> target = new ListConverter<T>();
			Assert.Inconclusive("TODO: Implement code to verify target");
		}

		[TestMethod()]
		public void ListConverterConstructorTest()
		{
			ListConverterConstructorTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for CanConvertFrom
		///</summary>
		public void CanConvertFromTestHelper<T>()
		{
			ListConverter<T> target = new ListConverter<T>(); // TODO: Initialize to an appropriate value
			ITypeDescriptorContext context = null; // TODO: Initialize to an appropriate value
			Type sourceType = null; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = target.CanConvertFrom(context, sourceType);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void CanConvertFromTest()
		{
			CanConvertFromTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for CanConvertTo
		///</summary>
		public void CanConvertToTestHelper<T>()
		{
			ListConverter<T> target = new ListConverter<T>(); // TODO: Initialize to an appropriate value
			ITypeDescriptorContext context = null; // TODO: Initialize to an appropriate value
			Type destinationType = null; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = target.CanConvertTo(context, destinationType);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void CanConvertToTest()
		{
			CanConvertToTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for ConvertFrom
		///</summary>
		public void ConvertFromTestHelper<T>()
		{
			ListConverter<T> target = new ListConverter<T>(); // TODO: Initialize to an appropriate value
			ITypeDescriptorContext context = null; // TODO: Initialize to an appropriate value
			CultureInfo culture = null; // TODO: Initialize to an appropriate value
			object value = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = target.ConvertFrom(context, culture, value);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertFromTest()
		{
			ConvertFromTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for ConvertTo
		///</summary>
		public void ConvertToTestHelper<T>()
		{
			ListConverter<T> target = new ListConverter<T>(); // TODO: Initialize to an appropriate value
			ITypeDescriptorContext context = null; // TODO: Initialize to an appropriate value
			CultureInfo culture = null; // TODO: Initialize to an appropriate value
			object value = null; // TODO: Initialize to an appropriate value
			Type destinationType = null; // TODO: Initialize to an appropriate value
			object expected = null; // TODO: Initialize to an appropriate value
			object actual;
			actual = target.ConvertTo(context, culture, value, destinationType);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertToTest()
		{
			ConvertToTestHelper<GenericParameterHelper>();
		}
	}
}
